<h2 style="background-color:#368EE0; color:white; font-size:20px; padding:5px;">Create Group </h2>
<p style="color:green;" align="justify">Please enter the Group information below.</p>
<br>
<br>

<div id="infoMessage"><?php echo $message;?></div>

<?php echo form_open("settings/group/create_group");?>

     <table width="60%" align="center" class="table-condensed">  
        <tr> <td><b> Group Name:</b></td>
            <td><?php echo form_input($name);?></td>
        </tr>   
      
      <tr>
         <td><b>Parent Group: </b></td>
         <td>   <?php 
	 	$bl[0] = "";
	   		foreach($groups as $group){
				$bl[$group->id] = $group->name;
			}
			echo form_dropdown('parent', $bl, '0', 'class="chzn-select" data-placeholder="Choose a Group" style="width:220px;"');  ?>
	</td>     
      <tr></tr><br>
	  <tr>
	
<tr> <td></td><td><p align="center"><?php echo form_submit('submit', 'Create Group','class="btn btn-success"');?></p></td></tr>
</table>
<?php echo form_close();?>
